package com.hjlsoft.aftp.network.nio;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;

import com.hjlsoft.aftp.config.AftpConfig;
import com.hjlsoft.aftp.network.AbstractResponse;

public class NioResponse extends AbstractResponse {

	private SocketChannel sc;
	
	public NioResponse(AftpConfig aftpConfig, SocketChannel sc) {
		super(aftpConfig);
		this.sc = sc;
	}

	public void write(byte[] data) throws IOException {
		sc.write(ByteBuffer.wrap(data));
	}

}
